package ezXpns.tests;

import static org.junit.Assert.*;

import org.junit.Before;
import org.junit.Test;
import static org.mockito.Mockito.mock;

import ezXpns.BudgetChange;
import ezXpns.analysis.Transform;
import ezXpns.analysis.transforms.IdentityTransform;


//@author A0086934R
public class IdentityTransformTest {
	
	@Before
	public void setUp() {
		TransformMock = mock(Transform.class);
	}

	@Test
	public void testConstructor() {
		IdentityTransform IT1 = new IdentityTransform();
		
		assertNotNull(IT1);
	}
	
	@Test
	public void test() {
		IdentityTransform IT2 = new IdentityTransform();
		BudgetChange BC2 = new BudgetChange();
		Integer I2 = new Integer(1);
		Float F2 = new Float(1.0);
		String S2 = "hello moto";
		
		assertTrue(IT2.apply(BC2) == BC2);
		assertTrue(IT2.apply(I2) == I2);
		assertTrue(IT2.apply(F2) == F2);
		assertTrue(IT2.apply(S2) == S2);
	}
	
	Transform TransformMock;
}
